-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Picker Component #1821
feat: Picker Component #1821
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1821 +/- ##
==========================================
- Coverage 46.11% 46.01% -0.11%
==========================================
Files 628 635 +7
Lines 37822 37887 +65
Branches 9529 9550 +21
==========================================
- Hits 17440 17432 -8
- Misses 20328 20401 +73
Partials 54 54
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, couple of comments about docs
export type PickerItemKey = Key | boolean; | ||
export type PickerSelectionChangeHandler = (key: PickerItemKey) => void; | ||
|
||
export interface NormalizedPickerItem { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a comment about why we're defining a PickerItemKey
and NormalizedPickerItem
here would be beneficial.
/** Handler that is called when the selection changes. */ | ||
onSelectionChange?: (key: PickerItemKey) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should mark this as deprecated to encourage usage of onChange
instead?
Supports deephaven/deephaven-plugins#292